package thread;

public class ThreadDemo6 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true) {
                    System.out.println("hello world");
                }
            }
        }, "MyRunnable");
        thread.start();
    }
}
